<?php

class Persion {
    public static $age = 22;
    public $name = '李四';
    
    public static function getAge(){
        echo 'I am a static function';
        return self::$age;
    }
    public static function setAge($age = 0){
        Persion::$age = $age;
    }
    
}

// $lisi = new Persion();
// echo 'Name = '.$lisi->name,'<br>';
echo 'Age = '.Persion::$age,'<br>';
Persion::setAge(32);
echo '<br/>'.Persion::getAge();
echo '<br/>';
function cnt (){
    static $num = 0;
    echo $num++,'<br/>';
}
cnt ();
cnt ();
cnt ();
cnt ();
cnt ();
